package com.lancoo.znbkxx.teacher.aibkTestCoach.kBase

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import androidx.viewpager.widget.PagerAdapter
import java.util.*

class KViewPagerAdapter(fm: FragmentManager?, private val mFragments: ArrayList<Fragment>) : FragmentStatePagerAdapter(fm!!) {
    override fun getItemPosition(`object`: Any): Int {
        return PagerAdapter.POSITION_NONE
    }

    override fun getItem(position: Int): Fragment {
        return mFragments[position]
    }

    override fun getCount(): Int {
        return mFragments.size
    }

}